<!DOCTYPE html>
<html>
  <head>
    <title>inscriptions.html</title>
	
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF8">
    
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
    <script src="../d3.js"></script>
   	<script src="data/hits.js"></script>
	
  </head>
  
  <body>
    <div id="hitsDiv" style="width:500px;height:500px;"></div>
    
    <script>
		//console.log(hits);
		var height = 500;
		var width = 500;
		var hitsSvg = d3.select(document.getElementById("hitsDiv")).append("svg:svg")
		    .attr("width", width)
		    .attr("height", height)
		    .style("background-color","#efefef");
		var hitNodes = hitsSvg.selectAll(".node")
			.data(hits).enter()
			.append("g")
			.attr("class","hitNodeG")
			.attr("transform", function(d) {
      return "translate(" + d.commonPart.length*20 + "," + d.keywordsHit.length*50 + ")";
    })
			.append("circle")
			.attr("class", "hitNode")			
			.attr("r",15)
			.style("fill", "#00F");
	</script>
  </body>
</html>
